 
const initData = 10
export default  function Count_reducer(preState = initData, action) {
    const { type, data } = action 
    switch (type) {
        case 'add': 
            return preState  + data 
        case 'sub':
            return preState - data
        default:
            return preState
    }
}